package com.cti.commons.delayqueue.core.mode;

import java.io.Serializable;

import lombok.Data;

/**
 * @author et.wang
 * @description:
 * @date 2022/10/27 19:36
 */
@Data
public class ScoredSortedItem implements Serializable {

    private static final long serialVersionUID = 7534486240102254832L;

    /**
     * 任务的执行时间
     */
    private long delayTime;

    /**
     * 延迟任务的唯一标识
     */
    private long delayQueueJobId;

    /**
     * 主题
     */
    private String topic;

    public ScoredSortedItem(long delayQueueJobId, long delayTime, String topic) {
        this.delayQueueJobId = delayQueueJobId;
        this.delayTime = delayTime;
        this.topic = topic;
    }

    public ScoredSortedItem() {

    }

}
